package cn.com.dhcc.adam.spring.mvc.five;

import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class ServiceAdvice {
	//@Pointcut("execution(* cn.com.dhcc.adam.spring.mvc.five.UserService.*(..))")
	@AfterReturning(returning = "rvt", pointcut = "execution(* cn.com.dhcc.adam.spring.mvc.five.UserService.*(..))")
	public void inServiceLayer() {
		System.out.println("service aspect!");
	}

	@Before("execution(* cn.com.dhcc.adam.spring.mvc.five.UserService.get*(..))")
	public void basic() {
		System.out.println("basic aspect");
	}



}
